<style>
	.text{
		text-align: right;
	}
</style>

<div class="zs-side">
	<div class="zs-menu ckxl">
		<div class="item selected">
			<div class="header">出差管理</div>
			<ul class="list">
				<li>
					<a href="javascript:;" ng-class="{'selected':tabs['gzccgl'].tabClass['tab1']}"
					ng-click="setBpmTab('gzccgl','tab1')"
					>出差申请</a>
				</li>
				<!--科员请假显示-->
				<li ng-show="gzccgl.editRow.bpmkey=='ccgl'">
					<a href="javascript:;" ng-class="{'selected':tabs['gzccgl'].tabClass['tab2']}"
					ng-click="setBpmTab('gzccgl','tab2')"
					>科室签批</a>
				</li>
				
				<!--科员请假或者科级干部请假显示-->
				<li ng-show="gzccgl.editRow.bpmkey=='ccgl' || gzccgl.editRow.bpmkey=='ccgl_kjgb'">
					<a href="javascript:;" ng-class="{'selected':tabs['gzccgl'].tabClass['tab5']}"
					ng-click="setBpmTab('gzccgl','tab5')"
					>办公室主任签批</a>
				</li>
				
				<!--副局请假流程不用签批-->
				<li ng-show="gzccgl.editRow.bpmkey!='ccgl_jjgb'">
					<a href="javascript:;" ng-class="{'selected':tabs['gzccgl'].tabClass['tab3']}"
					ng-click="setBpmTab('gzccgl','tab3')"
					>分管领导签批</a>
				</li>
				<li>
					<a href="javascript:;" ng-class="{'selected':tabs['gzccgl'].tabClass['tab4']}"
					ng-click="setBpmTab('gzccgl','tab4')"
					>局长签批</a>
				</li>
				<!--<li>
					<a href="javascript:;" ng-class="{'selected':tabs['gzccgl'].tabClass['tab2']}"
					ng-click="setBpmTab('gzccgl','tab2')"
					>分管领导签批</a>
				</li>
				<li>
					<a href="javascript:;" ng-class="{'selected':tabs['gzccgl'].tabClass['tab2']}"
					ng-click="setBpmTab('gzccgl','tab2')"
					>领导签批</a>
				</li>-->
			</ul>
		</div>
    </div>
</div>
<div class="zs-main" >
  <!--   报件录入-s -->
    <div class="zs-content" ng-show="tabs['gzccgl'].tabClass['tab1']">
    	<h4 class="content-tilte">出差申请</h4>
    	<div class="container">
    		<div id="content-djs">
    			<div class="zs-letter-table">
    				<table width="100%">
    					 <tbody>
          					<tr>
          						
  						

                                <td class="text" width="20%">申请人</td>
                                <td class="left" width="30%">
                                	
                                	
                                	<span ng-show="gzccgl.proauth.ccsq">
	                        	  	<ag-Dep ng-model="gzccgl.editRow.dwid" text-Value="gzccgl.editRow.szdw"  id="bmmc"
			                   		canuse="{{gzccgl.editRow.FIELD_ISNEW}}" ng-show="false"></ag-Dep>
		                   		
                                	<!--<input type="text" ng-model="gzccgl.editRow.ccrxm" class="zs-input" />-->
                                	
                                	<ag-User ng-model="gzccgl.editRow.ccrid" 
                                		text-Value="gzccgl.editRow.ccrxm" id="ccrid"
                                		canuse="{{gzccgl.editRow.FIELD_ISNEW}}"></ag-User>
                                	
                                	<!--<ag-Combotree class="zs-input" style="width:175px;height: 28px" fn='schedulefzr' para="{ uDictionary:false,
												pidField:'userid',
												checkbox:false,
												valueField:'userid',
												textField:'userName',
												onlyLeafCheck:true,
												bindFn:'schedule',
											
												foreignField:'departmentId',
												editable:true,
												keyField:'userid',
												queryFields:'userid,userName,departmentId',
												pageSize:1200,
												maxNavs:6,
												queryObject:{},
												ssn:'vuserinfo'}"
									 ng-model="gzccgl.editRow.ccrid" 
									 ng-change="onchangeScheduleFzr();" 
									 text-Value="gzccgl.editRow.ccrxm"></ag-Combotree>-->
									 
                                	</span>
                                		
                                	
                                	<span ng-show="!gzccgl.proauth.ccsq"><label ng-bind="gzccgl.editRow.ccrxm"></label></span>
                                </td>
                                
                                <td class="text" width="20%">职务</td>
                                <td class="left" width="30%">
                                	<span ng-show="gzccgl.proauth.ccsq">
                                	<input type="text" ng-model="gzccgl.editRow.ccrzw" class="zs-input" /></span>
                                	<span ng-show="!gzccgl.proauth.ccsq"><label ng-bind="gzccgl.editRow.ccrzw"></label></span>
                                </td>
                            </tr>
                            
                            <tr>
                                <td class="text" width="20%">目的地</td>
                                <td class="left" width="30%" colspan="3">
                                	<span ng-show="gzccgl.proauth.ccsq">
                                	<textarea type="text" ng-model="gzccgl.editRow.mdd" class="zs-input" 
                                		style="width:95%;height: 180px;"/></textarea></span>
                                	
                                	<span ng-show="!gzccgl.proauth.ccsq"><label ng-bind="gzccgl.editRow.mdd"></label></span>
                                </td>
          
                            </tr>
          			
          					<tr>
                                <td class="text" width="20%">外出事由</td>
                                <td class="left" width="30%" colspan="3">
                                	<span ng-show="gzccgl.proauth.ccsq">
                                	<textarea type="text" ng-model="gzccgl.editRow.wcsy" class="zs-input" 
                                		style="width:95%;height: 180px;"/></textarea></span>
                                	
                                	<span ng-show="!gzccgl.proauth.ccsq"><label ng-bind="gzccgl.editRow.wcsy"></label></span>
                                </td>
          
                            </tr>
						   <tr>
                                <td class="text" width="20%">开始时间</td>
                                <td class="left" width="30%">
                                	<span ng-show="gzccgl.proauth.ccsq">
                                	<ag-Datebox id='fi_kssj'  showcurday='true'
		                        		class="zs-input" style="width:180px;height: 28px"
		                        		ng-model="gzccgl.editRow.kssj" >
							   		</ag-Datebox></span>
							   		<span ng-show="!gzccgl.proauth.ccsq"><label ng-bind="gzccgl.editRow.kssj | asDate | date:'yyyy-MM-dd'"></label></span>
							   		
                                </td>
                                
                                <td class="text" width="20%">结束时间</td>
                                <td class="left" width="30%">
                                	<span ng-show="gzccgl.proauth.ccsq">
                                	<ag-Datebox id='fi_jssj'  showcurday='true'
		                        		class="zs-input" style="width:180px;height: 28px"
		                        		ng-model="gzccgl.editRow.jssj" >
							   		</ag-Datebox></span>
							   		<span ng-show="!gzccgl.proauth.ccsq"><label ng-bind="gzccgl.editRow.jssj | asDate | date:'yyyy-MM-dd'"></label></span>
                                </td>
                            </tr>
                            
                            <tr>
                                <td class="text" width="20%">交通工具</td>
                                <td class="left" width="30%">
                                	<span ng-show="gzccgl.proauth.ccsq">
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfsfj"/>飞机
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfshc"/>火车
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfsdwpc"/>单位派车
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfsqc"/>汽车
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfszdc"/>自带车
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfsqt"/>其他
                                	</span>
                                	<span ng-show="!gzccgl.proauth.ccsq">
                                		<input type="checkbox" ng-model="gzccgl.editRow.cxfsfj" disabled="true"/>飞机
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfshc" disabled="true"/>火车
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfsdwpc" disabled="true"/>单位派车
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfsqc" disabled="true"/>汽车
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfszdc" disabled="true"/>自带车
	                                	<input type="checkbox" ng-model="gzccgl.editRow.cxfsqt" disabled="true"/>其他
                                	</span>
                                </td>
                                
                                
                            <!--</tr>

          					 <tr>-->
                                <td class="text" width="20%">申请日期</td>
                                <td class="left" width="30%">
                                	<span ng-show="gzccgl.proauth.ccsq">
                                	<!--<ag-Datebox id='fi_sqrq'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzccgl.editRow.sqrq" >
							   		</ag-Datebox>-->
							   		<ag-Date ng-model="gzccgl.editRow.sqrq" id="sqrq"
							   			canuse="{{gzccgl.editRow.FIELD_ISNEW}}"></ag-Date>
							   		</span>
							   		<span ng-show="!gzccgl.proauth.ccsq"><label ng-bind="gzccgl.editRow.sqrq | asDate | date:'yyyy-MM-dd'"></label></span>
                                </td>
                            </tr>
          					
    					</tbody>
    				</table>
    				
    				<table width="100%">
						<tr>

							<td colspan="3" class="left">
								<span>同行出差人</span><span style="float: right;">
									<input type="button" class="zs-btn" ng-click="openWindow('chooseUser')" ng-show="gzccgl.proauth.ccsq"
									 value="添加" /> <input type="button" class="zs-btn" ng-show="gzccgl.proauth.ccsq" ng-click="delLocalRows(gzccgl.editRow.ccsxry)"
									 value="删除"></span>
							</td>
						</tr>
						<tr>
							<td style="text-align: center" class="text" width="5%">
								<input id="allCheckbox12" type="checkbox" 
									ng-show="gzccgl.proauth.ccsq" 
									ng-click="selectRows(gzccgl.editRow.ccsxry,'allCheckbox12');" 
									/></td>
							<td width="40%" class="text" style="text-align: center">同行人名称</td>
							<td width="40%" class="text" style="text-align: center">部门</td>
						</tr>
						<tr ng-repeat="r in gzccgl.editRow.ccsxry">
							<td class="center">
								<input type="checkbox" ng-show="gzccgl.proauth.ccsq" ng-click="selectRow('gzccgl.editRow.ccsxry',r);"
								 ng-model="r.selected" /></td>
							<td><span>
									<!--<input type="text" style="width: 95%"
										class="zs-input" ng-model="r.jsrmc" /></td>-->

									<label ng-bind="r.jsrmc"></label>
							<td><span>
									<!--<input type="text" style="width: 95%"
										class="zs-input" ng-model="r.jsrjg" />-->

									<label ng-bind="r.jsrjgmc"></label>
							</td>
						</tr>
					</table>
    			</div>
    		</div>
    	</div>
    </div>
	<!--   报件录入-e -->
	<!--   县级经办审查-s -->
    <div class="zs-content" ng-show="tabs['gzccgl'].tabClass['tab2']">
    	<div class="container">
    		<div id="content-djs">
    			<div class="zs-letter-table">
    				<table width="100%">
    					<tbody>
    						<tr >
    							<td class="key" width="25%" >
    								<span class="mark">科室签批</span>
    							</td>
    							<td width="75%" >
							
									<span ng-repeat="h in gzccgl.process.usertask2.history">
										<br ng-if="$index>0"/>
										<label ng-bind="h.optcontent"></label><br/>
										签批人:<label ng-bind="h.optassigneesname"></label>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时间:
										<label ng-bind="h.opttime | asDate | date:'yyyy-MM-dd HH时'"></label>
									</span>
								
									<br ng-if="gzccgl.process.usertask2.userEdit" ng-show="gzccgl.proauth.kshs"/>
	    							<textarea  type="text"  
	    								style="width:100%;height: 160px;"
	    								ng-if="gzccgl.process.usertask2.userEdit"
										ng-show="gzccgl.proauth.kshs"
		    							ng-model="gzccgl.process.usertask2.editRow.optcontent"></textarea>

    							</td>
    						</tr>
    					</tbody>
    				</table>
    			</div>
    		</div>
    	</div>
    </div>
    <!--   县级经办审查-e -->
    
    <!--办公室主任签批-s -->
    <div class="zs-content" ng-show="tabs['gzccgl'].tabClass['tab5']">
    	<div class="container">
    		<div id="content-djs">
    			<div class="zs-letter-table">
    				<table width="100%">
    					<tbody>
    						<tr >
    							<td class="key" width="25%" >
    								<span class="mark">办公室主任签批</span>
    							</td>
    							<td width="75%" >
							
									<span ng-repeat="h in gzccgl.process.usertask5.history">
										<br ng-if="$index>0"/>
										<label ng-bind="h.optcontent"></label><br/>
										签批人:<label ng-bind="h.optassigneesname"></label>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时间:
										<label ng-bind="h.opttime | asDate | date:'yyyy-MM-dd HH时'"></label>
									</span>
								
									<br ng-if="gzccgl.process.usertask5.userEdit" ng-show="gzccgl.proauth.bgszrsp"/>
	    							<textarea  type="text"  
	    								style="width:100%;height: 160px;"
	    								ng-if="gzccgl.process.usertask5.userEdit"
										ng-show="gzccgl.proauth.bgszrsp"
		    							ng-model="gzccgl.process.usertask5.editRow.optcontent"></textarea>
    							</td>
    						</tr>
    					</tbody>
    				</table>
    			</div>
    		</div>
    	</div>
    </div>
    <!--办公室主任签批-e -->
    
    <!--   县级经办审查-s -->
    <div class="zs-content" ng-show="tabs['gzccgl'].tabClass['tab3']">
    	<div class="container">
    		<div id="content-djs">
    			<div class="zs-letter-table">
    				<table width="100%">
    					<tbody>
    						<tr >
    							<td class="key" width="25%" colspan="2">
    								<span class="mark">分管领导签批</span>
    							</td>
    							<td width="75%" colspan="3">
							
									<span ng-repeat="h in gzccgl.process.usertask3.history">
										<br ng-if="$index>0"/>
										<label ng-bind="h.optcontent"></label><br/>
										签批人:<label ng-bind="h.optassigneesname"></label>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时间:
										<label ng-bind="h.opttime | asDate | date:'yyyy-MM-dd HH时'"></label>
									</span>
								
									<br ng-if="gzccgl.process.usertask3.userEdit" ng-show="gzccgl.proauth.fgldsh"/>
	    							<textarea rows="2" cols="8" type="text"  
	    								style="width:100%;height: 200px;"
	    								ng-if="gzccgl.process.usertask3.userEdit"
										ng-show="gzccgl.proauth.fgldsh"
		    							ng-model="gzccgl.process.usertask3.editRow.optcontent"></textarea>

    							</td>
    						</tr>
    					</tbody>
    				</table>
    			</div>
    		</div>
    	</div>
    </div>
    <!--   县级经办审查-e -->
    
      <!--   县级经办审查-s -->
    <div class="zs-content" ng-show="tabs['gzccgl'].tabClass['tab4']">
    	<div class="container">
    		<div id="content-djs">
    			<div class="zs-letter-table">
    				<table width="100%">
    					<tbody>
    						<tr >
    							<td class="key" width="25%" colspan="2">
    								<span class="mark">局长审核</span>
    							</td>
    							<td width="75%" colspan="3">
							
									<span ng-repeat="h in gzccgl.process.usertask4.history">
										<br ng-if="$index>0"/>
										<label ng-bind="h.optcontent"></label><br/>
										签批人:<label ng-bind="h.optassigneesname"></label>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时间:
										<label ng-bind="h.opttime | asDate | date:'yyyy-MM-dd HH时'"></label>
									</span>
								
									<br ng-if="gzccgl.process.usertask4.userEdit" ng-show="gzccgl.proauth.ldsh"/>
	    							<textarea rows="2" cols="8" type="text"  
	    								style="width:100%;height: 200px;"
	    								ng-if="gzccgl.process.usertask4.userEdit"
										ng-show="gzccgl.proauth.ldsh"
		    							ng-model="gzccgl.process.usertask4.editRow.optcontent"></textarea>

    							</td>
    						</tr>
    						
    					
    					</tbody>
    				</table>
    			</div>
    		</div>
    	</div>
    </div>
    <!--   县级经办审查-e -->
</div>


<div ag-Window id="chooseUser" title="选择收件人" width='660px' height='460px'>
	<div class="zs-form-tab ibox" data-ng-init="formInit('userinfo', {
					ssn:'vuserinfo',
					esn:'userinfo',
					keyField:'userid',
					pageSize:8,
					randomFields:['userid'],
					orderObject:{userid:0} 
				}) && loadData('userinfo');setConHei();">
		<div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
				<span class="search-warpper">
					<i class="icon"></i>
					<input type="text" placeholder="姓名" class="zs-input" ng-model="userinfo.queryObject['userName:like']" />
				</span>
				<span class="search-warpper">
					<i class="icon"></i>
					<ag-Combobox class="zs-input" style="width:175px;height: 28px" fn='dptidEdit' 
						para="{ uDictionary:true,
								dictionary:'p_department',
								pidField:'pid',
								leafField:'leaf'}"
						ng-change="loadData('userinfo');" 
						ng-model="userinfo.queryObject['departmentId:=']" />
				</span>
			</div>
			<div class="operation item" style="margin-top:5px;margin-left:0px;">
				<input type="button" class="zs-btn orange" value="查询" ng-click="loadData('userinfo')" />
				<!--<a class="ope-1" ng-click="loadData('userinfo')"></a>
		                <a class="ope-2"></a>-->
			</div>
		</div>
		<div class="date-container">
			<div id="zpgwd">
				<div class="zs-data-table">
					<div class="container">
						<table>
							<thead>
								<tr>
									<th>
										<input id="allCheckbox" type="checkbox" ng-click="selectOrCancelAll('userinfo','allCheckbox');" />
									</th>
									<th>姓名/帐号</th>
									<th>所属机构</th>
									<th>所属角色</th>
								</tr>
							</thead>
							<tbody>
								<tr ng-repeat="r in userinfo.datas">
									<td>
										<input type="checkbox" ng-click="selectRow('userinfo',r);" ng-model="r.selected" />
									</td>
									<td>
										<a>
											<label ng-bind="r.userName"></label>
											<label ng-if="r.accounts">/</label>
											<label ng-bind="r.accounts"></label>
										</a>
									</td>
									<td>
										<a>
											<label ng-bind="r.organizationName"></label>
											<label ng-bind="r.departmentName"></label>
											<label ng-bind="r.operatingPostName"></label>
										</a>
									</td>
									<td>
										<a>
											<label ng-bind="r.roleNames"></label>
										</a>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="zs-pagination-box">
					<ag-Page fn='userinfo'></ag-Page>
				</div>
				<div style="text-align: center;">
					<input type="button" class="zs-btn orange" value="选择 " ng-click="chooseSJR('gzccgl','ccsxry','userinfo','chooseUser')" />
				</div>
			</div>
		</div>
	</div>
</div>